home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / temgen.lha / Temgen / tg-0.11 / y.tab.c < prev    next >
C/C++ Source or Header  |  2004-06-11  |  80KB  |  2,176 lines

  1.  
  2. /*  A Bison parser, made from tg.y
  3.  by  GNU Bison version 1.27
  4.   */
  5.  
  6. #define YYBISON 1  /* Identify Bison output.  */
  7.  
  8. #define    TOK_NUM    257
  9. #define    TOK_FLOAT    258
  10. #define    TOK_NAME    259
  11. #define    TOK_STRING    260
  12. #define    TOK_CHAR    261
  13. #define    TOK_DOL    262
  14. #define    TOK_DIV    263
  15. #define    TOK_DOT    264
  16. #define    TOK_COM    265
  17. #define    TOK_STAR    266
  18. #define    TOK_PLUS    267
  19. #define    TOK_MINUS    268
  20. #define    TOK_PLUSPLUS    269
  21. #define    TOK_MINUSMINUS    270
  22. #define    TOK_PLUS_S    271
  23. #define    TOK_MINUS_S    272
  24. #define    TOK_DIV_S    273
  25. #define    TOK_MUL_S    274
  26. #define    TOK_CLOSE    275
  27. #define    TOK_CLOSEB    276
  28. #define    TOK_NL    277
  29. #define    TOK_OPEN    278
  30. #define    TOK_OPENB    279
  31. #define    TOK_COLON    280
  32. #define    TOK_SCOL    281
  33. #define    TOK_AT    282
  34. #define    TOK_EQ    283
  35. #define    TOK_IN    284
  36. #define    TOK_EQEQ    285
  37. #define    TOK_LT    286
  38. #define    TOK_NE    287
  39. #define    TOK_GT    288
  40. #define    TOK_NOT    289
  41. #define    TOK_AND    290
  42. #define    TOK_OR    291
  43. #define    TOK_LTEQ    292
  44. #define    TOK_GTEQ    293
  45. #define    TOK_IF    294
  46. #define    TOK_ELSE    295
  47. #define    TOK_ENDIF    296
  48. #define    TOK_EMBED    297
  49. #define    TOK_EMIT    298
  50. #define    TOK_OUTPUT    299
  51. #define    TOK_LOCAL    300
  52. #define    TOK_PUSH    301
  53. #define    TOK_POP    302
  54. #define    TOK_FUNCTION    303
  55. #define    TOK_ENDFUNCTION    304
  56. #define    TOK_SWITCH    305
  57. #define    TOK_CASE    306
  58. #define    TOK_FOR    307
  59. #define    TOK_ENDSWITCH    308
  60. #define    TOK_ENDFOR    309
  61. #define    TOK_RETURN    310
  62. #define    TOK_BREAK    311
  63. #define    TOK_USE    312
  64. #define    TOK_EXIT    313
  65.  
  66.  
  67. #line 99 "tg.y"
  68. typedef union  {
  69.     struct int_rec {
  70.             int            val;
  71.             int            line;
  72.             int            start, end;
  73.     } i;
  74.  
  75.     struct float_rec {
  76.             float          val;
  77.             int            line;
  78.             int            start, end;
  79.     } f;
  80.     
  81.     struct char_rec {
  82.             char          *val;
  83.             int            line;
  84.             int            start, end;
  85.     } s;
  86.     
  87.     struct ptr_rec {
  88.             void          *val;
  89.             int            line;
  90.             int            start, end;
  91.     } p;
  92.     
  93.     struct line_rec {
  94.         int    line;
  95.         struct command *cmd;
  96.     } l;
  97. } YYSTYPE;
  98. #line 130 "tg.y"
  99.  
  100. #include "alloc.h"
  101. #include "generator.h"    
  102. #include "util.h"    
  103.     
  104. #include <stdio.h>
  105. #define FL     fflush(stdout);    
  106. #define dpr    printf 
  107. #define P(s)   {dpr(s);}
  108.  
  109. #undef  YYDEBUG        
  110. #define YYDEBUG 1
  111.  
  112. #undef  YYERROR_VERBOSE        
  113. #define YYERROR_VERBOSE   1
  114.     
  115. int   yydebug = 0;        
  116. char *errmsg = "syntax error";
  117.  
  118. extern struct txttab *text_table;
  119. extern struct lintab *line_table;
  120. extern int curfilen;
  121. extern int lineno;
  122.  
  123. #define  ERR(msg) save_error(atom_name(curfilen), lineno, msg)
  124. #include <stdio.h>
  125.  
  126. #ifndef __cplusplus
  127. #ifndef __STDC__
  128. #ifndef const
  129. #define const
  130. #endif
  131. #endif
  132. #endif
  133.  
  134.  
  135.  
  136. #define    YYFINAL        232
  137. #define    YYFLAG        -32768
  138. #define    YYNTBASE    60
  139.  
  140. #define YYTRANSLATE(x) ((unsigned)(x) <= 313 ? yytranslate[x] : 101)
  141.  
  142. static const char yytranslate[] = {     0,
  143.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  144.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  145.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  146.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  147.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  148.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  149.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  150.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  151.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  152.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  153.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  154.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  155.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  156.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  157.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  158.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  159.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  160.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  161.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  162.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  163.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  164.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  165.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  166.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  167.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  168.      2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
  169.      7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
  170.     17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  171.     27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
  172.     37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
  173.     47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
  174.     57,    58,    59
  175. };
  176.  
  177. #if YYDEBUG != 0
  178. static const short yyprhs[] = {     0,
  179.      0,     1,     3,     6,    10,    12,    14,    16,    18,    20,
  180.     23,    26,    28,    30,    32,    34,    36,    38,    40,    42,
  181.     44,    46,    48,    50,    52,    54,    56,    58,    60,    62,
  182.     64,    66,    68,    70,    72,    74,    76,    78,    80,    82,
  183.     84,    86,    88,    90,    92,    94,    97,   102,   105,   107,
  184.    111,   115,   117,   119,   121,   123,   125,   127,   129,   131,
  185.    133,   135,   137,   139,   141,   143,   147,   149,   153,   157,
  186.    161,   165,   167,   171,   175,   179,   183,   185,   189,   193,
  187.    199,   203,   207,   210,   212,   214,   217,   220,   223,   226,
  188.    229,   232,   234,   236,   238,   242,   245,   247,   249,   254,
  189.    259,   263,   267,   268,   270,   272,   276,   278,   280,   282,
  190.    284,   286,   288,   290,   292,   294,   296,   298,   300,   302,
  191.    304,   306,   308,   311,   317,   326,   329,   332,   334,   342,
  192.    345,   346,   348,   350,   354,   360,   365,   367,   370,   376,
  193.    379,   385,   388,   396,   402,   405,   408,   411,   413,   415,
  194.    417,   418,   420,   422,   425,   428,   431,   434,   437,   440,
  195.    443,   445
  196. };
  197.  
  198. static const short yyrhs[] = {    -1,
  199.     62,     0,    60,    61,     0,    60,    61,    62,     0,    23,
  200.      0,    63,     0,    78,     0,    64,     0,    65,     0,    63,
  201.     64,     0,    63,    65,     0,     3,     0,     4,     0,     5,
  202.      0,     6,     0,     7,     0,    10,     0,    26,     0,    27,
  203.      0,    11,     0,    29,     0,    32,     0,    30,     0,    33,
  204.      0,    34,     0,    35,     0,    36,     0,    37,     0,    31,
  205.      0,    38,     0,    39,     0,    12,     0,    13,     0,    18,
  206.      0,    17,     0,    20,     0,    19,     0,    14,     0,    15,
  207.      0,    16,     0,     9,     0,    24,     0,    21,     0,    25,
  208.      0,    22,     0,     8,    66,     0,     8,    24,    68,    21,
  209.      0,     8,     1,     0,    75,     0,    66,    10,    75,     0,
  210.     66,    10,     1,     0,    31,     0,    29,     0,    32,     0,
  211.     34,     0,    33,     0,    38,     0,    39,     0,    20,     0,
  212.     19,     0,    17,     0,    18,     0,    37,     0,    36,     0,
  213.     69,     0,    68,    67,    69,     0,    70,     0,    69,    13,
  214.     70,     0,    69,    14,    70,     0,    69,    13,     1,     0,
  215.     69,    14,     1,     0,    74,     0,    70,    12,    74,     0,
  216.     70,     9,    74,     0,    70,    12,     1,     0,    70,     9,
  217.      1,     0,    68,     0,    71,    11,    68,     0,     5,    26,
  218.     68,     0,    72,    11,     5,    26,    68,     0,    25,    71,
  219.     22,     0,    25,    72,    22,     0,    25,     1,     0,    65,
  220.      0,    73,     0,    74,    15,     0,    15,    74,     0,    35,
  221.     74,     0,    14,    74,     0,    74,    16,     0,    16,    74,
  222.      0,     3,     0,     4,     0,     6,     0,    24,    68,    21,
  223.      0,    24,     1,     0,     5,     0,    65,     0,    75,    24,
  224.     76,    21,     0,    75,    25,    68,    22,     0,    75,    24,
  225.      1,     0,    75,    25,     1,     0,     0,    77,     0,    68,
  226.      0,    77,    11,    68,     0,    79,     0,    81,     0,    84,
  227.      0,    87,     0,    94,     0,    95,     0,    96,     0,    97,
  228.      0,    98,     0,    89,     0,    90,     0,    91,     0,    92,
  229.      0,    99,     0,   100,     0,    28,     0,    28,     1,     0,
  230.     40,    68,    23,    60,    42,     0,    40,    68,    23,    60,
  231.     41,    23,    60,    42,     0,    40,     1,     0,    60,    50,
  232.      0,     1,     0,    49,     5,    24,    82,    21,    23,    80,
  233.      0,    49,     1,     0,     0,    83,     0,     5,     0,    83,
  234.     11,     5,     0,    51,    68,    23,    85,    54,     0,    51,
  235.     68,    23,     1,     0,    86,     0,    85,    86,     0,    52,
  236.     68,    26,    23,    60,     0,    52,     1,     0,    53,    88,
  237.     23,    60,    55,     0,    53,     1,     0,    24,    93,    27,
  238.     93,    27,    93,    21,     0,    24,    65,    30,    68,    21,
  239.      0,    24,     1,     0,    56,    68,     0,    56,     1,     0,
  240.     57,     0,    47,     0,    48,     0,     0,    68,     0,     1,
  241.      0,    28,    68,     0,    43,    68,     0,    44,    68,     0,
  242.     45,    68,     0,    46,     5,     0,    58,     5,     0,    58,
  243.      6,     0,    59,     0,    59,    68,     0
  244. };
  245.  
  246. #endif
  247.  
  248. #if YYDEBUG != 0
  249. static const short yyrline[] = { 0,
  250.    158,   159,   160,   161,   164,   167,   170,   176,   180,   186,
  251.    191,   198,   199,   200,   201,   202,   203,   204,   205,   206,
  252.    207,   208,   209,   210,   211,   212,   213,   214,   215,   216,
  253.    217,   218,   219,   220,   221,   222,   223,   224,   225,   227,
  254.    229,   230,   231,   232,   233,   236,   242,   248,   254,   260,
  255.    266,   272,   273,   274,   275,   276,   277,   278,   279,   280,
  256.    281,   282,   283,   284,   287,   288,   296,   297,   303,   309,
  257.    313,   319,   320,   326,   332,   335,   340,   345,   352,   358,
  258.    367,   373,   379,   385,   386,   387,   393,   399,   405,   411,
  259.    417,   423,   429,   435,   445,   451,   456,   466,   471,   477,
  260.    483,   486,   492,   493,   496,   502,   510,   511,   512,   513,
  261.    514,   515,   516,   517,   518,   519,   520,   521,   522,   523,
  262.    524,   525,   527,   533,   537,   541,   546,   547,   551,   562,
  263.    568,   569,   572,   576,   583,   588,   593,   596,   602,   606,
  264.    611,   615,   620,   624,   630,   635,   638,   643,   648,   653,
  265.    658,   659,   660,   665,   669,   673,   677,   681,   685,   687,
  266.    693,   696
  267. };
  268. #endif
  269.  
  270.  
  271. #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  272.  
  273. static const char * const yytname[] = {   "$","error","$undefined.","TOK_NUM",
  274. "TOK_FLOAT","TOK_NAME","TOK_STRING","TOK_CHAR","TOK_DOL","TOK_DIV","TOK_DOT",
  275. "TOK_COM","TOK_STAR","TOK_PLUS","TOK_MINUS","TOK_PLUSPLUS","TOK_MINUSMINUS",
  276. "TOK_PLUS_S","TOK_MINUS_S","TOK_DIV_S","TOK_MUL_S","TOK_CLOSE","TOK_CLOSEB",
  277. "TOK_NL","TOK_OPEN","TOK_OPENB","TOK_COLON","TOK_SCOL","TOK_AT","TOK_EQ","TOK_IN",
  278. "TOK_EQEQ","TOK_LT","TOK_NE","TOK_GT","TOK_NOT","TOK_AND","TOK_OR","TOK_LTEQ",
  279. "TOK_GTEQ","TOK_IF","TOK_ELSE","TOK_ENDIF","TOK_EMBED","TOK_EMIT","TOK_OUTPUT",
  280. "TOK_LOCAL","TOK_PUSH","TOK_POP","TOK_FUNCTION","TOK_ENDFUNCTION","TOK_SWITCH",
  281. "TOK_CASE","TOK_FOR","TOK_ENDSWITCH","TOK_ENDFOR","TOK_RETURN","TOK_BREAK","TOK_USE",
  282. "TOK_EXIT","lines","eol","cmd","data_line","other_token","dol_exp","obj","relop",
  283. "exp","ear","emul","array","record","constructor","smp_exp","objpart","arglist",
  284. "arglist1","ctl_cmd","cmd_if","fun_body","cmd_function","param_list","param_list1",
  285. "cmd_switch","case_list","case_item","cmd_for","forctl","cmd_return","cmd_break",
  286. "cmd_push","cmd_pop","optexp","cmd_exp","cmd_embed","cmd_emit","cmd_output",
  287. "cmd_local","cmd_use","cmd_exit", NULL
  288. };
  289. #endif
  290.  
  291. static const short yyr1[] = {     0,
  292.     60,    60,    60,    60,    61,    62,    62,    63,    63,    63,
  293.     63,    64,    64,    64,    64,    64,    64,    64,    64,    64,
  294.     64,    64,    64,    64,    64,    64,    64,    64,    64,    64,
  295.     64,    64,    64,    64,    64,    64,    64,    64,    64,    64,
  296.     64,    64,    64,    64,    64,    65,    65,    65,    66,    66,
  297.     66,    67,    67,    67,    67,    67,    67,    67,    67,    67,
  298.     67,    67,    67,    67,    68,    68,    69,    69,    69,    69,
  299.     69,    70,    70,    70,    70,    70,    71,    71,    72,    72,
  300.     73,    73,    73,    74,    74,    74,    74,    74,    74,    74,
  301.     74,    74,    74,    74,    74,    74,    75,    75,    75,    75,
  302.     75,    75,    76,    76,    77,    77,    78,    78,    78,    78,
  303.     78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
  304.     78,    78,    78,    79,    79,    79,    80,    80,    81,    81,
  305.     82,    82,    83,    83,    84,    84,    85,    85,    86,    86,
  306.     87,    87,    88,    88,    88,    89,    89,    90,    91,    92,
  307.     93,    93,    93,    94,    95,    96,    97,    98,    99,    99,
  308.    100,   100
  309. };
  310.  
  311. static const short yyr2[] = {     0,
  312.      0,     1,     2,     3,     1,     1,     1,     1,     1,     2,
  313.      2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  314.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  315.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  316.      1,     1,     1,     1,     1,     2,     4,     2,     1,     3,
  317.      3,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  318.      1,     1,     1,     1,     1,     3,     1,     3,     3,     3,
  319.      3,     1,     3,     3,     3,     3,     1,     3,     3,     5,
  320.      3,     3,     2,     1,     1,     2,     2,     2,     2,     2,
  321.      2,     1,     1,     1,     3,     2,     1,     1,     4,     4,
  322.      3,     3,     0,     1,     1,     3,     1,     1,     1,     1,
  323.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  324.      1,     1,     2,     5,     8,     2,     2,     1,     7,     2,
  325.      0,     1,     1,     3,     5,     4,     1,     2,     5,     2,
  326.      5,     2,     7,     5,     2,     2,     2,     1,     1,     1,
  327.      0,     1,     1,     2,     2,     2,     2,     2,     2,     2,
  328.      1,     2
  329. };
  330.  
  331. static const short yydefact[] = {     1,
  332.     12,    13,    14,    15,    16,     0,    41,    17,    20,    32,
  333.     33,    38,    39,    40,    35,    34,    37,    36,    43,    45,
  334.     42,    44,    18,    19,     0,    21,    23,    29,    22,    24,
  335.     25,    26,    27,    28,    30,    31,     0,     0,     0,     0,
  336.      0,   149,   150,     0,     0,     0,     0,   148,     0,   161,
  337.      0,     2,     6,     8,     9,     7,   107,   108,   109,   110,
  338.    116,   117,   118,   119,   111,   112,   113,   114,   115,   120,
  339.    121,    48,    97,     0,    98,    46,    49,   123,    92,    93,
  340.     94,     0,     0,     0,     0,     0,     0,    84,   154,    65,
  341.     67,    85,    72,   126,     0,   155,   156,   157,   158,   130,
  342.      0,     0,   142,     0,     0,   147,   146,   159,   160,   162,
  343.      5,     3,    10,    11,     0,     0,     0,     0,    89,    87,
  344.     91,    96,     0,    83,     0,    77,     0,     0,    88,    61,
  345.     62,    60,    59,    53,    52,    54,    56,    55,    64,    63,
  346.     57,    58,     0,     0,     0,     0,     0,    86,    90,     1,
  347.    131,     0,   145,    84,   152,     0,     1,     4,    47,    51,
  348.     50,   101,   105,     0,   104,   102,     0,    95,     0,     0,
  349.     81,     0,    82,    66,    70,    68,    71,    69,    76,    74,
  350.     75,    73,     0,   133,     0,   132,   136,     0,     0,   137,
  351.      0,     0,     0,    99,     0,   100,    79,    78,     0,     0,
  352.    124,     0,     0,   140,     0,   135,   138,     0,   153,     0,
  353.    141,   106,     0,     1,     0,   134,     0,   144,     0,    80,
  354.      0,   128,     0,   129,     1,     0,   125,   127,   139,   143,
  355.      0,     0
  356. };
  357.  
  358. static const short yydefgoto[] = {    51,
  359.    112,    52,    53,    54,    88,    76,   143,   155,    90,    91,
  360.    127,   128,    92,    93,    77,   164,   165,    56,    57,   224,
  361.     58,   185,   186,    59,   189,   190,    60,   105,    61,    62,
  362.     63,    64,   156,    65,    66,    67,    68,    69,    70,    71
  363. };
  364.  
  365. static const short yypact[] = {   280,
  366. -32768,-32768,-32768,-32768,-32768,    19,-32768,-32768,-32768,-32768,
  367. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  368. -32768,-32768,-32768,-32768,    33,-32768,-32768,-32768,-32768,-32768,
  369. -32768,-32768,-32768,-32768,-32768,-32768,   401,   615,   615,   615,
  370.     20,-32768,-32768,    50,   615,     6,   426,-32768,    59,   615,
  371.     12,-32768,   337,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  372. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  373. -32768,-32768,-32768,   615,-32768,     1,    55,-32768,-32768,-32768,
  374. -32768,   615,   615,   615,   451,    94,   615,-32768,   785,    76,
  375.     60,-32768,    90,-32768,   624,   785,   785,   785,-32768,-32768,
  376.     22,   647,-32768,   124,    29,-32768,   785,-32768,-32768,   785,
  377. -32768,   280,-32768,-32768,   670,    37,   162,   476,    90,    90,
  378.     90,-32768,   693,-32768,    47,   785,    48,    49,    90,-32768,
  379. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  380. -32768,-32768,   615,   501,   526,   551,   576,-32768,-32768,   280,
  381.     79,     2,    69,    56,   785,    74,   280,-32768,-32768,-32768,
  382.     55,-32768,   785,    82,    96,-32768,   716,-32768,   615,   615,
  383. -32768,   106,-32768,    76,-32768,    60,-32768,    60,-32768,    90,
  384. -32768,    90,   -13,-32768,    92,   103,-32768,   601,    24,-32768,
  385.    615,   376,   -15,-32768,   615,-32768,   785,   785,    89,    97,
  386. -32768,    98,   112,-32768,   739,-32768,-32768,   762,-32768,    95,
  387. -32768,   785,   615,   280,   223,-32768,   100,-32768,   187,   785,
  388.     21,-32768,   -19,-32768,   280,   105,-32768,-32768,   101,-32768,
  389.    131,-32768
  390. };
  391.  
  392. static const short yypgoto[] = {  -148,
  393. -32768,    23,-32768,    80,     0,-32768,-32768,   -24,    -9,   -53,
  394. -32768,-32768,-32768,   -65,    25,-32768,-32768,-32768,-32768,-32768,
  395. -32768,-32768,-32768,-32768,-32768,   -52,-32768,-32768,-32768,-32768,
  396. -32768,-32768,  -187,-32768,-32768,-32768,-32768,-32768,-32768,-32768
  397. };
  398.  
  399.  
  400. #define    YYLAST        824
  401.  
  402.  
  403. static const short yytable[] = {    55,
  404.     89,   183,   187,   111,   210,    75,   103,   111,   193,   111,
  405.    116,   231,    95,    96,    97,    98,   119,   120,   121,    72,
  406.    102,   129,   107,    73,    99,   110,     6,   200,   201,   104,
  407.    228,   226,  -122,    78,   111,    79,    80,   160,    81,   211,
  408.      6,    73,    74,   111,     6,   151,    82,    83,    84,   115,
  409.    100,   157,   114,   188,   101,  -122,    85,    86,   170,   172,
  410.    123,   126,   227,   108,   109,   221,   223,    87,   146,   171,
  411.    173,   147,   169,  -122,  -122,   188,   229,   206,   117,   118,
  412.    180,   182,  -122,   184,  -122,   191,  -122,  -122,   144,   145,
  413.    176,   178,   163,   167,   124,  -153,    79,    80,   125,    81,
  414.    192,     6,   194,   154,   148,   149,   195,    82,    83,    84,
  415.    199,    55,   202,   203,   213,    75,   216,    85,    86,   214,
  416.    215,   219,   225,   111,   153,   230,    79,    80,    87,    81,
  417.    232,     6,   113,   174,   158,     0,   207,    82,    83,    84,
  418.    161,     0,     0,     0,   197,   198,     0,    85,    86,    55,
  419.   -151,     0,     0,     0,     0,     0,    55,     0,    87,     0,
  420.      0,     0,   162,   205,    79,    80,   208,    81,     0,     6,
  421.    212,     0,     0,     0,     0,    82,    83,    84,     0,     0,
  422.      0,     0,  -103,     0,     0,    85,    86,   209,   220,    79,
  423.     80,     0,    81,     0,     6,     0,    87,     0,     0,     0,
  424.     82,    83,    84,     0,     0,     0,     0,  -151,     0,     0,
  425.     85,    86,     0,    55,    55,     0,     0,     0,     0,     0,
  426.      0,    87,     0,   222,    55,     1,     2,     3,     4,     5,
  427.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  428.     16,    17,    18,    19,    20,    -1,    21,    22,    23,    24,
  429.     25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
  430.     35,    36,    37,     0,     0,    38,    39,    40,    41,    42,
  431.     43,    44,    -1,    45,     0,    46,     0,     0,    47,    48,
  432.     49,    50,     1,     2,     3,     4,     5,     6,     7,     8,
  433.      9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
  434.     19,    20,     0,    21,    22,    23,    24,    25,    26,    27,
  435.     28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
  436.      0,     0,    38,    39,    40,    41,    42,    43,    44,     0,
  437.     45,     0,    46,     0,     0,    47,    48,    49,    50,     1,
  438.      2,     3,     4,     5,     6,     7,     8,     9,    10,    11,
  439.     12,    13,    14,    15,    16,    17,    18,    19,    20,     0,
  440.     21,    22,    23,    24,     0,    26,    27,    28,    29,    30,
  441.     31,    32,    33,    34,    35,    36,   209,     0,    79,    80,
  442.      0,    81,     0,     6,     0,     0,     0,     0,     0,    82,
  443.     83,    84,     0,     0,     0,     0,     0,     0,     0,    85,
  444.     86,    94,  -151,    79,    80,     0,    81,     0,     6,     0,
  445.     87,     0,     0,     0,    82,    83,    84,     0,     0,     0,
  446.      0,     0,     0,     0,    85,    86,   106,     0,    79,    80,
  447.      0,    81,     0,     6,     0,    87,     0,     0,     0,    82,
  448.     83,    84,     0,     0,     0,     0,     0,     0,     0,    85,
  449.     86,   122,     0,    79,    80,     0,    81,     0,     6,     0,
  450.     87,     0,     0,     0,    82,    83,    84,     0,     0,     0,
  451.      0,     0,     0,     0,    85,    86,   166,     0,    79,    80,
  452.      0,    81,     0,     6,     0,    87,     0,     0,     0,    82,
  453.     83,    84,     0,     0,     0,     0,     0,     0,     0,    85,
  454.     86,   175,     0,    79,    80,     0,    81,     0,     6,     0,
  455.     87,     0,     0,     0,    82,    83,    84,     0,     0,     0,
  456.      0,     0,     0,     0,    85,    86,   177,     0,    79,    80,
  457.      0,    81,     0,     6,     0,    87,     0,     0,     0,    82,
  458.     83,    84,     0,     0,     0,     0,     0,     0,     0,    85,
  459.     86,   179,     0,    79,    80,     0,    81,     0,     6,     0,
  460.     87,     0,     0,     0,    82,    83,    84,     0,     0,     0,
  461.      0,     0,     0,     0,    85,    86,   181,     0,    79,    80,
  462.      0,    81,     0,     6,     0,    87,     0,     0,     0,    82,
  463.     83,    84,     0,     0,     0,     0,     0,     0,     0,    85,
  464.     86,   204,     0,    79,    80,     0,    81,     0,     6,     0,
  465.     87,     0,     0,     0,    82,    83,    84,    79,    80,     0,
  466.     81,     0,     6,     0,    85,    86,     0,     0,    82,    83,
  467.     84,     0,     0,     0,     0,    87,     0,     0,    85,    86,
  468.    130,   131,   132,   133,     0,     0,   150,     0,     0,    87,
  469.      0,     0,   134,     0,   135,   136,   137,   138,     0,   139,
  470.    140,   141,   142,   130,   131,   132,   133,     0,     0,   152,
  471.      0,     0,     0,     0,     0,   134,     0,   135,   136,   137,
  472.    138,     0,   139,   140,   141,   142,   130,   131,   132,   133,
  473.    159,     0,     0,     0,     0,     0,     0,     0,   134,     0,
  474.    135,   136,   137,   138,     0,   139,   140,   141,   142,   130,
  475.    131,   132,   133,   168,     0,     0,     0,     0,     0,     0,
  476.      0,   134,     0,   135,   136,   137,   138,     0,   139,   140,
  477.    141,   142,   130,   131,   132,   133,     0,   196,     0,     0,
  478.      0,     0,     0,     0,   134,     0,   135,   136,   137,   138,
  479.      0,   139,   140,   141,   142,   130,   131,   132,   133,     0,
  480.      0,     0,     0,     0,   217,     0,     0,   134,     0,   135,
  481.    136,   137,   138,     0,   139,   140,   141,   142,   130,   131,
  482.    132,   133,   218,     0,     0,     0,     0,     0,     0,     0,
  483.    134,     0,   135,   136,   137,   138,     0,   139,   140,   141,
  484.    142,   130,   131,   132,   133,     0,     0,     0,     0,     0,
  485.      0,     0,     0,   134,     0,   135,   136,   137,   138,     0,
  486.    139,   140,   141,   142
  487. };
  488.  
  489. static const short yycheck[] = {     0,
  490.     25,   150,     1,    23,   192,     6,     1,    23,   157,    23,
  491.     10,     0,    37,    38,    39,    40,    82,    83,    84,     1,
  492.     45,    87,    47,     5,     5,    50,     8,    41,    42,    24,
  493.     50,   219,     0,     1,    23,     3,     4,     1,     6,    55,
  494.      8,     5,    24,    23,     8,    24,    14,    15,    16,    74,
  495.      1,    23,    53,    52,     5,    23,    24,    25,    11,    11,
  496.     85,    86,    42,     5,     6,   214,   215,    35,     9,    22,
  497.     22,    12,    26,    41,    42,    52,   225,    54,    24,    25,
  498.    146,   147,    50,     5,    52,    30,    54,    55,    13,    14,
  499.    144,   145,   117,   118,     1,    27,     3,     4,     5,     6,
  500.     27,     8,    21,   104,    15,    16,    11,    14,    15,    16,
  501.      5,   112,    21,    11,    26,   116,     5,    24,    25,    23,
  502.     23,    27,    23,    23,     1,    21,     3,     4,    35,     6,
  503.      0,     8,    53,   143,   112,    -1,   189,    14,    15,    16,
  504.    116,    -1,    -1,    -1,   169,   170,    -1,    24,    25,   150,
  505.     27,    -1,    -1,    -1,    -1,    -1,   157,    -1,    35,    -1,
  506.     -1,    -1,     1,   188,     3,     4,   191,     6,    -1,     8,
  507.    195,    -1,    -1,    -1,    -1,    14,    15,    16,    -1,    -1,
  508.     -1,    -1,    21,    -1,    -1,    24,    25,     1,   213,     3,
  509.      4,    -1,     6,    -1,     8,    -1,    35,    -1,    -1,    -1,
  510.     14,    15,    16,    -1,    -1,    -1,    -1,    21,    -1,    -1,
  511.     24,    25,    -1,   214,   215,    -1,    -1,    -1,    -1,    -1,
  512.     -1,    35,    -1,     1,   225,     3,     4,     5,     6,     7,
  513.      8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
  514.     18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
  515.     28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
  516.     38,    39,    40,    -1,    -1,    43,    44,    45,    46,    47,
  517.     48,    49,    50,    51,    -1,    53,    -1,    -1,    56,    57,
  518.     58,    59,     3,     4,     5,     6,     7,     8,     9,    10,
  519.     11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
  520.     21,    22,    -1,    24,    25,    26,    27,    28,    29,    30,
  521.     31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
  522.     -1,    -1,    43,    44,    45,    46,    47,    48,    49,    -1,
  523.     51,    -1,    53,    -1,    -1,    56,    57,    58,    59,     3,
  524.      4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
  525.     14,    15,    16,    17,    18,    19,    20,    21,    22,    -1,
  526.     24,    25,    26,    27,    -1,    29,    30,    31,    32,    33,
  527.     34,    35,    36,    37,    38,    39,     1,    -1,     3,     4,
  528.     -1,     6,    -1,     8,    -1,    -1,    -1,    -1,    -1,    14,
  529.     15,    16,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    24,
  530.     25,     1,    27,     3,     4,    -1,     6,    -1,     8,    -1,
  531.     35,    -1,    -1,    -1,    14,    15,    16,    -1,    -1,    -1,
  532.     -1,    -1,    -1,    -1,    24,    25,     1,    -1,     3,     4,
  533.     -1,     6,    -1,     8,    -1,    35,    -1,    -1,    -1,    14,
  534.     15,    16,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    24,
  535.     25,     1,    -1,     3,     4,    -1,     6,    -1,     8,    -1,
  536.     35,    -1,    -1,    -1,    14,    15,    16,    -1,    -1,    -1,
  537.     -1,    -1,    -1,    -1,    24,    25,     1,    -1,     3,     4,
  538.     -1,     6,    -1,     8,    -1,    35,    -1,    -1,    -1,    14,
  539.     15,    16,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    24,
  540.     25,     1,    -1,     3,     4,    -1,     6,    -1,     8,    -1,
  541.     35,    -1,    -1,    -1,    14,    15,    16,    -1,    -1,    -1,
  542.     -1,    -1,    -1,    -1,    24,    25,     1,    -1,     3,     4,
  543.     -1,     6,    -1,     8,    -1,    35,    -1,    -1,    -1,    14,
  544.     15,    16,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    24,
  545.     25,     1,    -1,     3,     4,    -1,     6,    -1,     8,    -1,
  546.     35,    -1,    -1,    -1,    14,    15,    16,    -1,    -1,    -1,
  547.     -1,    -1,    -1,    -1,    24,    25,     1,    -1,     3,     4,
  548.     -1,     6,    -1,     8,    -1,    35,    -1,    -1,    -1,    14,
  549.     15,    16,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    24,
  550.     25,     1,    -1,     3,     4,    -1,     6,    -1,     8,    -1,
  551.     35,    -1,    -1,    -1,    14,    15,    16,     3,     4,    -1,
  552.      6,    -1,     8,    -1,    24,    25,    -1,    -1,    14,    15,
  553.     16,    -1,    -1,    -1,    -1,    35,    -1,    -1,    24,    25,
  554.     17,    18,    19,    20,    -1,    -1,    23,    -1,    -1,    35,
  555.     -1,    -1,    29,    -1,    31,    32,    33,    34,    -1,    36,
  556.     37,    38,    39,    17,    18,    19,    20,    -1,    -1,    23,
  557.     -1,    -1,    -1,    -1,    -1,    29,    -1,    31,    32,    33,
  558.     34,    -1,    36,    37,    38,    39,    17,    18,    19,    20,
  559.     21,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    29,    -1,
  560.     31,    32,    33,    34,    -1,    36,    37,    38,    39,    17,
  561.     18,    19,    20,    21,    -1,    -1,    -1,    -1,    -1,    -1,
  562.     -1,    29,    -1,    31,    32,    33,    34,    -1,    36,    37,
  563.     38,    39,    17,    18,    19,    20,    -1,    22,    -1,    -1,
  564.     -1,    -1,    -1,    -1,    29,    -1,    31,    32,    33,    34,
  565.     -1,    36,    37,    38,    39,    17,    18,    19,    20,    -1,
  566.     -1,    -1,    -1,    -1,    26,    -1,    -1,    29,    -1,    31,
  567.     32,    33,    34,    -1,    36,    37,    38,    39,    17,    18,
  568.     19,    20,    21,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  569.     29,    -1,    31,    32,    33,    34,    -1,    36,    37,    38,
  570.     39,    17,    18,    19,    20,    -1,    -1,    -1,    -1,    -1,
  571.     -1,    -1,    -1,    29,    -1,    31,    32,    33,    34,    -1,
  572.     36,    37,    38,    39
  573. };
  574. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  575. #line 3 "/gg/share/bison.simple"
  576. /* This file comes from bison-1.27.  */
  577.  
  578. /* Skeleton output parser for bison,
  579.    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  580.  
  581.    This program is free software; you can redistribute it and/or modify
  582.    it under the terms of the GNU General Public License as published by
  583.    the Free Software Foundation; either version 2, or (at your option)
  584.    any later version.
  585.  
  586.    This program is distributed in the hope that it will be useful,
  587.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  588.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  589.    GNU General Public License for more details.
  590.  
  591.    You should have received a copy of the GNU General Public License
  592.    along with this program; if not, write to the Free Software
  593.    Foundation, Inc., 59 Temple Place - Suite 330,
  594.    Boston, MA 02111-1307, USA.  */
  595.  
  596. /* As a special exception, when this file is copied by Bison into a
  597.    Bison output file, you may use that output file without restriction.
  598.    This special exception was added by the Free Software Foundation
  599.    in version 1.24 of Bison.  */
  600.  
  601. /* This is the parser code that is written into each bison parser
  602.   when the %semantic_parser declaration is not specified in the grammar.
  603.   It was written by Richard Stallman by simplifying the hairy parser
  604.   used when %semantic_parser is specified.  */
  605.  
  606. #ifndef YYSTACK_USE_ALLOCA
  607. #ifdef alloca
  608. #define YYSTACK_USE_ALLOCA
  609. #else /* alloca not defined */
  610. #ifdef __GNUC__
  611. #define YYSTACK_USE_ALLOCA
  612. #define alloca __builtin_alloca
  613. #else /* not GNU C.  */
  614. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  615. #define YYSTACK_USE_ALLOCA
  616. #include <alloca.h>
  617. #else /* not sparc */
  618. /* We think this test detects Watcom and Microsoft C.  */
  619. /* This used to test MSDOS, but that is a bad idea
  620.    since that symbol is in the user namespace.  */
  621. #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  622. #if 0 /* No need for malloc.h, which pollutes the namespace;
  623.      instead, just don't use alloca.  */
  624. #include <malloc.h>
  625. #endif
  626. #else /* not MSDOS, or __TURBOC__ */
  627. #if defined(_AIX)
  628. /* I don't know what this was needed for, but it pollutes the namespace.
  629.    So I turned it off.   rms, 2 May 1997.  */
  630. /* #include <malloc.h>  */
  631.  #pragma alloca
  632. #define YYSTACK_USE_ALLOCA
  633. #else /* not MSDOS, or __TURBOC__, or _AIX */
  634. #if 0
  635. #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
  636.          and on HPUX 10.  Eventually we can turn this on.  */
  637. #define YYSTACK_USE_ALLOCA
  638. #define alloca __builtin_alloca
  639. #endif /* __hpux */
  640. #endif
  641. #endif /* not _AIX */
  642. #endif /* not MSDOS, or __TURBOC__ */
  643. #endif /* not sparc */
  644. #endif /* not GNU C */
  645. #endif /* alloca not defined */
  646. #endif /* YYSTACK_USE_ALLOCA not defined */
  647.  
  648. #ifdef YYSTACK_USE_ALLOCA
  649. #define YYSTACK_ALLOC alloca
  650. #else
  651. #define YYSTACK_ALLOC malloc
  652. #endif
  653.  
  654. /* Note: there must be only one dollar sign in this file.
  655.    It is replaced by the list of actions, each action
  656.    as one case of the switch.  */
  657.  
  658. #define yyerrok        (yyerrstatus = 0)
  659. #define yyclearin    (yychar = YYEMPTY)
  660. #define YYEMPTY        -2
  661. #define YYEOF        0
  662. #define YYACCEPT    goto yyacceptlab
  663. #define YYABORT     goto yyabortlab
  664. #define YYERROR        goto yyerrlab1
  665. /* Like YYERROR except do call yyerror.
  666.    This remains here temporarily to ease the
  667.    transition to the new meaning of YYERROR, for GCC.
  668.    Once GCC version 2 has supplanted version 1, this can go.  */
  669. #define YYFAIL        goto yyerrlab
  670. #define YYRECOVERING()  (!!yyerrstatus)
  671. #define YYBACKUP(token, value) \
  672. do                                \
  673.   if (yychar == YYEMPTY && yylen == 1)                \
  674.     { yychar = (token), yylval = (value);            \
  675.       yychar1 = YYTRANSLATE (yychar);                \
  676.       YYPOPSTACK;                        \
  677.       goto yybackup;                        \
  678.     }                                \
  679.   else                                \
  680.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  681. while (0)
  682.  
  683. #define YYTERROR    1
  684. #define YYERRCODE    256
  685.  
  686. #ifndef YYPURE
  687. #define YYLEX        yylex()
  688. #endif
  689.  
  690. #ifdef YYPURE
  691. #ifdef YYLSP_NEEDED
  692. #ifdef YYLEX_PARAM
  693. #define YYLEX        yylex(&yylval, &yylloc, YYLEX_PARAM)
  694. #else
  695. #define YYLEX        yylex(&yylval, &yylloc)
  696. #endif
  697. #else /* not YYLSP_NEEDED */
  698. #ifdef YYLEX_PARAM
  699. #define YYLEX        yylex(&yylval, YYLEX_PARAM)
  700. #else
  701. #define YYLEX        yylex(&yylval)
  702. #endif
  703. #endif /* not YYLSP_NEEDED */
  704. #endif
  705.  
  706. /* If nonreentrant, generate the variables here */
  707.  
  708. #ifndef YYPURE
  709.  
  710. int    yychar;            /*  the lookahead symbol        */
  711. YYSTYPE    yylval;            /*  the semantic value of the        */
  712.                 /*  lookahead symbol            */
  713.  
  714. #ifdef YYLSP_NEEDED
  715. YYLTYPE yylloc;            /*  location data for the lookahead    */
  716.                 /*  symbol                */
  717. #endif
  718.  
  719. int yynerrs;            /*  number of parse errors so far       */
  720. #endif  /* not YYPURE */
  721.  
  722. #if YYDEBUG != 0
  723. int yydebug;            /*  nonzero means print parse trace    */
  724. /* Since this is uninitialized, it does not stop multiple parsers
  725.    from coexisting.  */
  726. #endif
  727.  
  728. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  729.  
  730. #ifndef    YYINITDEPTH
  731. #define YYINITDEPTH 200
  732. #endif
  733.  
  734. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  735.     (effective only if the built-in stack extension method is used).  */
  736.  
  737. #if YYMAXDEPTH == 0
  738. #undef YYMAXDEPTH
  739. #endif
  740.  
  741. #ifndef YYMAXDEPTH
  742. #define YYMAXDEPTH 10000
  743. #endif
  744.  
  745. /* Define __yy_memcpy.  Note that the size argument
  746.    should be passed with type unsigned int, because that is what the non-GCC
  747.    definitions require.  With GCC, __builtin_memcpy takes an arg
  748.    of type size_t, but it can handle unsigned int.  */
  749.  
  750. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  751. #define __yy_memcpy(TO,FROM,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  752. #else                /* not GNU C or C++ */
  753. #ifndef __cplusplus
  754.  
  755. /* This is the most reliable way to avoid incompatibilities
  756.    in available built-in functions on various systems.  */
  757. static void
  758. __yy_memcpy (to, from, count)
  759.      char *to;
  760.      char *from;
  761.      unsigned int count;
  762. {
  763.   register char *f = from;
  764.   register char *t = to;
  765.   register int i = count;
  766.  
  767.   while (i-- > 0)
  768.     *t++ = *f++;
  769. }
  770.  
  771. #else /* __cplusplus */
  772.  
  773. /* This is the most reliable way to avoid incompatibilities
  774.    in available built-in functions on various systems.  */
  775. static void
  776. __yy_memcpy (char *to, char *from, unsigned int count)
  777. {
  778.   register char *t = to;
  779.   register char *f = from;
  780.   register int i = count;
  781.  
  782.   while (i-- > 0)
  783.     *t++ = *f++;
  784. }
  785.  
  786. #endif
  787. #endif
  788.  
  789. #line 216 "/gg/share/bison.simple"
  790.  
  791. /* The user can define YYPARSE_PARAM as the name of an argument to be passed
  792.    into yyparse.  The argument should have type void *.
  793.    It should actually point to an object.
  794.    Grammar actions can access the variable by casting it
  795.    to the proper pointer type.  */
  796.  
  797. #ifdef YYPARSE_PARAM
  798. #ifdef __cplusplus
  799. #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  800. #define YYPARSE_PARAM_DECL
  801. #else /* not __cplusplus */
  802. #define YYPARSE_PARAM_ARG YYPARSE_PARAM
  803. #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  804. #endif /* not __cplusplus */
  805. #else /* not YYPARSE_PARAM */
  806. #define YYPARSE_PARAM_ARG
  807. #define YYPARSE_PARAM_DECL
  808. #endif /* not YYPARSE_PARAM */
  809.  
  810. /* Prevent warning if -Wstrict-prototypes.  */
  811. #ifdef __GNUC__
  812. #ifdef YYPARSE_PARAM
  813. int yyparse (void *);
  814. #else
  815. int yyparse (void);
  816. #endif
  817. #endif
  818.  
  819. int
  820. yyparse(YYPARSE_PARAM_ARG)
  821.      YYPARSE_PARAM_DECL
  822. {
  823.   register int yystate;
  824.   register int yyn;
  825.   register short *yyssp;
  826.   register YYSTYPE *yyvsp;
  827.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  828.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  829.  
  830.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  831.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  832.  
  833.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  834.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  835.  
  836. #ifdef YYLSP_NEEDED
  837.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  838.   YYLTYPE *yyls = yylsa;
  839.   YYLTYPE *yylsp;
  840.  
  841. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  842. #else
  843. #define YYPOPSTACK   (yyvsp--, yyssp--)
  844. #endif
  845.  
  846.   int yystacksize = YYINITDEPTH;
  847.   int yyfree_stacks = 0;
  848.  
  849. #ifdef YYPURE
  850.   int yychar;
  851.   YYSTYPE yylval;
  852.   int yynerrs;
  853. #ifdef YYLSP_NEEDED
  854.   YYLTYPE yylloc;
  855. #endif
  856. #endif
  857.  
  858.   YYSTYPE yyval;        /*  the variable used to return        */
  859.                 /*  semantic values from the action    */
  860.                 /*  routines                */
  861.  
  862.   int yylen;
  863.  
  864. #if YYDEBUG != 0
  865.   if (yydebug)
  866.     fprintf(stderr, "Starting parse\n");
  867. #endif
  868.  
  869.   yystate = 0;
  870.   yyerrstatus = 0;
  871.   yynerrs = 0;
  872.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  873.  
  874.   /* Initialize stack pointers.
  875.      Waste one element of value and location stack
  876.      so that they stay on the same level as the state stack.
  877.      The wasted elements are never initialized.  */
  878.  
  879.   yyssp = yyss - 1;
  880.   yyvsp = yyvs;
  881. #ifdef YYLSP_NEEDED
  882.   yylsp = yyls;
  883. #endif
  884.  
  885. /* Push a new state, which is found in  yystate  .  */
  886. /* In all cases, when you get here, the value and location stacks
  887.    have just been pushed. so pushing a state here evens the stacks.  */
  888. yynewstate:
  889.  
  890.   *++yyssp = yystate;
  891.  
  892.   if (yyssp >= yyss + yystacksize - 1)
  893.     {
  894.       /* Give user a chance to reallocate the stack */
  895.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  896.       YYSTYPE *yyvs1 = yyvs;
  897.       short *yyss1 = yyss;
  898. #ifdef YYLSP_NEEDED
  899.       YYLTYPE *yyls1 = yyls;
  900. #endif
  901.  
  902.       /* Get the current used size of the three stacks, in elements.  */
  903.       int size = yyssp - yyss + 1;
  904.  
  905. #ifdef yyoverflow
  906.       /* Each stack pointer address is followed by the size of
  907.      the data in use in that stack, in bytes.  */
  908. #ifdef YYLSP_NEEDED
  909.       /* This used to be a conditional around just the two extra args,
  910.      but that might be undefined if yyoverflow is a macro.  */
  911.       yyoverflow("parser stack overflow",
  912.          &yyss1, size * sizeof (*yyssp),
  913.          &yyvs1, size * sizeof (*yyvsp),
  914.          &yyls1, size * sizeof (*yylsp),
  915.          &yystacksize);
  916. #else
  917.       yyoverflow("parser stack overflow",
  918.          &yyss1, size * sizeof (*yyssp),
  919.          &yyvs1, size * sizeof (*yyvsp),
  920.          &yystacksize);
  921. #endif
  922.  
  923.       yyss = yyss1; yyvs = yyvs1;
  924. #ifdef YYLSP_NEEDED
  925.       yyls = yyls1;
  926. #endif
  927. #else /* no yyoverflow */
  928.       /* Extend the stack our own way.  */
  929.       if (yystacksize >= YYMAXDEPTH)
  930.     {
  931.       yyerror("parser stack overflow");
  932.       if (yyfree_stacks)
  933.         {
  934.           free (yyss);
  935.           free (yyvs);
  936. #ifdef YYLSP_NEEDED
  937.           free (yyls);
  938. #endif
  939.         }
  940.       return 2;
  941.     }
  942.       yystacksize *= 2;
  943.       if (yystacksize > YYMAXDEPTH)
  944.     yystacksize = YYMAXDEPTH;
  945. #ifndef YYSTACK_USE_ALLOCA
  946.       yyfree_stacks = 1;
  947. #endif
  948.       yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  949.       __yy_memcpy ((char *)yyss, (char *)yyss1,
  950.            size * (unsigned int) sizeof (*yyssp));
  951.       yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  952.       __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  953.            size * (unsigned int) sizeof (*yyvsp));
  954. #ifdef YYLSP_NEEDED
  955.       yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  956.       __yy_memcpy ((char *)yyls, (char *)yyls1,
  957.            size * (unsigned int) sizeof (*yylsp));
  958. #endif
  959. #endif /* no yyoverflow */
  960.  
  961.       yyssp = yyss + size - 1;
  962.       yyvsp = yyvs + size - 1;
  963. #ifdef YYLSP_NEEDED
  964.       yylsp = yyls + size - 1;
  965. #endif
  966.  
  967. #if YYDEBUG != 0
  968.       if (yydebug)
  969.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  970. #endif
  971.  
  972.       if (yyssp >= yyss + yystacksize - 1)
  973.     YYABORT;
  974.     }
  975.  
  976. #if YYDEBUG != 0
  977.   if (yydebug)
  978.     fprintf(stderr, "Entering state %d\n", yystate);
  979. #endif
  980.  
  981.   goto yybackup;
  982.  yybackup:
  983.  
  984. /* Do appropriate processing given the current state.  */
  985. /* Read a lookahead token if we need one and don't already have one.  */
  986. /* yyresume: */
  987.  
  988.   /* First try to decide what to do without reference to lookahead token.  */
  989.  
  990.   yyn = yypact[yystate];
  991.   if (yyn == YYFLAG)
  992.     goto yydefault;
  993.  
  994.   /* Not known => get a lookahead token if don't already have one.  */
  995.  
  996.   /* yychar is either YYEMPTY or YYEOF
  997.      or a valid token in external form.  */
  998.  
  999.   if (yychar == YYEMPTY)
  1000.     {
  1001. #if YYDEBUG != 0
  1002.       if (yydebug)
  1003.     fprintf(stderr, "Reading a token: ");
  1004. #endif
  1005.       yychar = YYLEX;
  1006.     }
  1007.  
  1008.   /* Convert token to internal form (in yychar1) for indexing tables with */
  1009.  
  1010.   if (yychar <= 0)        /* This means end of input. */
  1011.     {
  1012.       yychar1 = 0;
  1013.       yychar = YYEOF;        /* Don't call YYLEX any more */
  1014.  
  1015. #if YYDEBUG != 0
  1016.       if (yydebug)
  1017.     fprintf(stderr, "Now at end of input.\n");
  1018. #endif
  1019.     }
  1020.   else
  1021.     {
  1022.       yychar1 = YYTRANSLATE(yychar);
  1023.  
  1024. #if YYDEBUG != 0
  1025.       if (yydebug)
  1026.     {
  1027.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  1028.       /* Give the individual parser a way to print the precise meaning
  1029.          of a token, for further debugging info.  */
  1030. #ifdef YYPRINT
  1031.       YYPRINT (stderr, yychar, yylval);
  1032. #endif
  1033.       fprintf (stderr, ")\n");
  1034.     }
  1035. #endif
  1036.     }
  1037.  
  1038.   yyn += yychar1;
  1039.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  1040.     goto yydefault;
  1041.  
  1042.   yyn = yytable[yyn];
  1043.  
  1044.   /* yyn is what to do for this token type in this state.
  1045.      Negative => reduce, -yyn is rule number.
  1046.      Positive => shift, yyn is new state.
  1047.        New state is final state => don't bother to shift,
  1048.        just return success.
  1049.      0, or most negative number => error.  */
  1050.  
  1051.   if (yyn < 0)
  1052.     {
  1053.       if (yyn == YYFLAG)
  1054.     goto yyerrlab;
  1055.       yyn = -yyn;
  1056.       goto yyreduce;
  1057.     }
  1058.   else if (yyn == 0)
  1059.     goto yyerrlab;
  1060.  
  1061.   if (yyn == YYFINAL)
  1062.     YYACCEPT;
  1063.  
  1064.   /* Shift the lookahead token.  */
  1065.  
  1066. #if YYDEBUG != 0
  1067.   if (yydebug)
  1068.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1069. #endif
  1070.  
  1071.   /* Discard the token being shifted unless it is eof.  */
  1072.   if (yychar != YYEOF)
  1073.     yychar = YYEMPTY;
  1074.  
  1075.   *++yyvsp = yylval;
  1076. #ifdef YYLSP_NEEDED
  1077.   *++yylsp = yylloc;
  1078. #endif
  1079.  
  1080.   /* count tokens shifted since error; after three, turn off error status.  */
  1081.   if (yyerrstatus) yyerrstatus--;
  1082.  
  1083.   yystate = yyn;
  1084.   goto yynewstate;
  1085.  
  1086. /* Do the default action for the current state.  */
  1087. yydefault:
  1088.  
  1089.   yyn = yydefact[yystate];
  1090.   if (yyn == 0)
  1091.     goto yyerrlab;
  1092.  
  1093. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1094. yyreduce:
  1095.   yylen = yyr2[yyn];
  1096.   if (yylen > 0)
  1097.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1098.  
  1099. #if YYDEBUG != 0
  1100.   if (yydebug)
  1101.     {
  1102.       int i;
  1103.  
  1104.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  1105.            yyn, yyrline[yyn]);
  1106.  
  1107.       /* Print the symbols being reduced, and their result.  */
  1108.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  1109.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  1110.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  1111.     }
  1112. #endif
  1113.  
  1114.  
  1115.   switch (yyn) {
  1116.  
  1117. case 5:
  1118. #line 164 "tg.y"
  1119. { close_line( yyvsp[0].s.line, yyvsp[0].s.end ); ;
  1120.     break;}
  1121. case 6:
  1122. #line 167 "tg.y"
  1123. {          
  1124.                                     lt_set( line_table, yyvsp[0].l.line, yyvsp[0].l.cmd );
  1125.                                   ;
  1126.     break;}
  1127. case 7:
  1128. #line 170 "tg.y"
  1129.                                     add_cmd( line_table, yyvsp[0].l.line, yyvsp[0].l.cmd );
  1130.                                   ;
  1131.     break;}
  1132. case 8:
  1133. #line 176 "tg.y"
  1134.                                     yyval.l.line = yyvsp[0].s.line; 
  1135.                                     yyval.l.cmd = build_lcmd_c(0, yyvsp[0].s.start, yyvsp[0].s.end);
  1136.                                   ;
  1137.     break;}
  1138. case 9:
  1139. #line 180 "tg.y"
  1140.                                     /* dump_expression( $1.val ); */
  1141.                                     yyval.l.line = yyvsp[0].p.line; 
  1142.                                     yyval.l.cmd = build_lcmd_e(0, yyvsp[0].p.val, yyvsp[0].p.start, 
  1143.                                             yyvsp[0].p.end);
  1144.                                   ;
  1145.     break;}
  1146. case 10:
  1147. #line 186 "tg.y"
  1148.                                     yyval.l.line = yyvsp[-1].l.line;
  1149.                                     yyval.l.cmd = build_lcmd_c(yyvsp[-1].l.cmd, 
  1150.                                             yyvsp[0].s.start, yyvsp[0].s.end);
  1151.                                   ;
  1152.     break;}
  1153. case 11:
  1154. #line 191 "tg.y"
  1155.                                     /* dump_expression( $2.val ); */
  1156.                                     yyval.l.line = yyvsp[-1].l.line; 
  1157.                                     yyval.l.cmd = build_lcmd_e(yyvsp[-1].l.cmd, yyvsp[0].p.val, yyvsp[0].p.start, yyvsp[0].p.end);
  1158.                                   ;
  1159.     break;}
  1160. case 12:
  1161. #line 198 "tg.y"
  1162. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1163.     break;}
  1164. case 13:
  1165. #line 199 "tg.y"
  1166. { yyval.s.line=yyvsp[0].f.line;yyval.s.start=yyvsp[0].f.start;yyval.s.end=yyvsp[0].f.end; ;
  1167.     break;}
  1168. case 14:
  1169. #line 200 "tg.y"
  1170. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1171.     break;}
  1172. case 15:
  1173. #line 201 "tg.y"
  1174. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1175.     break;}
  1176. case 16:
  1177. #line 202 "tg.y"
  1178. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1179.     break;}
  1180. case 17:
  1181. #line 203 "tg.y"
  1182. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1183.     break;}
  1184. case 18:
  1185. #line 204 "tg.y"
  1186. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1187.     break;}
  1188. case 19:
  1189. #line 205 "tg.y"
  1190. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1191.     break;}
  1192. case 20:
  1193. #line 206 "tg.y"
  1194. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1195.     break;}
  1196. case 21:
  1197. #line 207 "tg.y"
  1198. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1199.     break;}
  1200. case 22:
  1201. #line 208 "tg.y"
  1202. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1203.     break;}
  1204. case 23:
  1205. #line 209 "tg.y"
  1206. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1207.     break;}
  1208. case 24:
  1209. #line 210 "tg.y"
  1210. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1211.     break;}
  1212. case 25:
  1213. #line 211 "tg.y"
  1214. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1215.     break;}
  1216. case 26:
  1217. #line 212 "tg.y"
  1218. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1219.     break;}
  1220. case 27:
  1221. #line 213 "tg.y"
  1222. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1223.     break;}
  1224. case 28:
  1225. #line 214 "tg.y"
  1226. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1227.     break;}
  1228. case 29:
  1229. #line 215 "tg.y"
  1230. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1231.     break;}
  1232. case 30:
  1233. #line 216 "tg.y"
  1234. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1235.     break;}
  1236. case 31:
  1237. #line 217 "tg.y"
  1238. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1239.     break;}
  1240. case 32:
  1241. #line 218 "tg.y"
  1242. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1243.     break;}
  1244. case 33:
  1245. #line 219 "tg.y"
  1246. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1247.     break;}
  1248. case 34:
  1249. #line 220 "tg.y"
  1250. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1251.     break;}
  1252. case 35:
  1253. #line 221 "tg.y"
  1254. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1255.     break;}
  1256. case 36:
  1257. #line 222 "tg.y"
  1258. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1259.     break;}
  1260. case 37:
  1261. #line 223 "tg.y"
  1262. { yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1263.     break;}
  1264. case 38:
  1265. #line 224 "tg.y"
  1266. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1267.     break;}
  1268. case 39:
  1269. #line 225 "tg.y"
  1270. {
  1271.                             yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1272.     break;}
  1273. case 40:
  1274. #line 227 "tg.y"
  1275.                             yyval.s.line=yyvsp[0].i.line;yyval.s.start=yyvsp[0].i.start;yyval.s.end=yyvsp[0].i.end; ;
  1276.     break;}
  1277. case 41:
  1278. #line 229 "tg.y"
  1279. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1280.     break;}
  1281. case 42:
  1282. #line 230 "tg.y"
  1283. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1284.     break;}
  1285. case 43:
  1286. #line 231 "tg.y"
  1287. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1288.     break;}
  1289. case 44:
  1290. #line 232 "tg.y"
  1291. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1292.     break;}
  1293. case 45:
  1294. #line 233 "tg.y"
  1295. { yyval.s.line=yyvsp[0].s.line;yyval.s.start=yyvsp[0].s.start;yyval.s.end=yyvsp[0].s.end; ;
  1296.     break;}
  1297. case 46:
  1298. #line 236 "tg.y"
  1299.                                           yyval.p.line = yyvsp[-1].s.line;
  1300.                                           yyval.p.start = yyvsp[-1].s.start;
  1301.                                           yyval.p.end = yyvsp[0].p.end;
  1302.                                           yyval.p.val = new_objexp( yyvsp[0].p.val );
  1303.                                        ;
  1304.     break;}
  1305. case 47:
  1306. #line 242 "tg.y"
  1307. {
  1308.                                           yyval.p.line = yyvsp[-3].s.line;
  1309.                                           yyval.p.start = yyvsp[-3].s.start;
  1310.                                           yyval.p.end = yyvsp[0].s.end;
  1311.                                           yyval.p.val = yyvsp[-1].p.val;
  1312.                                        ;
  1313.     break;}
  1314. case 48:
  1315. #line 248 "tg.y"
  1316. { ERR(        
  1317.                                        "'(', '$' or object expected after '$'");
  1318.                                           yyval.p.val = 0; 
  1319.                                        ;
  1320.     break;}
  1321. case 49:
  1322. #line 254 "tg.y"
  1323. {
  1324.                                           yyval.p.line = yyvsp[0].p.line;
  1325.                                           yyval.p.start = yyvsp[0].p.start;
  1326.                                           yyval.p.end = yyvsp[0].p.end;
  1327.                                           yyval.p.val = new_object( 0, yyvsp[0].p.val );
  1328.                                        ;
  1329.     break;}
  1330. case 50:
  1331. #line 260 "tg.y"
  1332.                                           yyval.p.line = yyvsp[-2].p.line; 
  1333.                                           yyval.p.start = yyvsp[-2].p.start;
  1334.                                           yyval.p.end = yyvsp[0].p.end; 
  1335.                                           yyval.p.val = new_object(yyvsp[-2].p.val, yyvsp[0].p.val);
  1336.                                        ;
  1337.     break;}
  1338. case 51:
  1339. #line 266 "tg.y"
  1340.                                          ERR("object expected after '.'"); 
  1341.                                          yyval.p.val = 0;
  1342.                                        ;
  1343.     break;}
  1344. case 52:
  1345. #line 272 "tg.y"
  1346. {  yyval.i.val = 'e'; ;
  1347.     break;}
  1348. case 53:
  1349. #line 273 "tg.y"
  1350. {  yyval.i.val = '='; ;
  1351.     break;}
  1352. case 54:
  1353. #line 274 "tg.y"
  1354. {  yyval.i.val = '<'; ;
  1355.     break;}
  1356. case 55:
  1357. #line 275 "tg.y"
  1358. {  yyval.i.val = '>'; ;
  1359.     break;}
  1360. case 56:
  1361. #line 276 "tg.y"
  1362. {  yyval.i.val = '!'; ;
  1363.     break;}
  1364. case 57:
  1365. #line 277 "tg.y"
  1366. {  yyval.i.val = 'l'; ;
  1367.     break;}
  1368. case 58:
  1369. #line 278 "tg.y"
  1370. {  yyval.i.val = 'g'; ;
  1371.     break;}
  1372. case 59:
  1373. #line 279 "tg.y"
  1374. {  yyval.i.val = '1'; ;
  1375.     break;}
  1376. case 60:
  1377. #line 280 "tg.y"
  1378. {  yyval.i.val = '2'; ;
  1379.     break;}
  1380. case 61:
  1381. #line 281 "tg.y"
  1382. {  yyval.i.val = '3'; ;
  1383.     break;}
  1384. case 62:
  1385. #line 282 "tg.y"
  1386. {  yyval.i.val = '4'; ;
  1387.     break;}
  1388. case 63:
  1389. #line 283 "tg.y"
  1390. {  yyval.i.val = '|'; ;
  1391.     break;}
  1392. case 64:
  1393. #line 284 "tg.y"
  1394. {  yyval.i.val = '&'; ;
  1395.     break;}
  1396. case 66:
  1397. #line 288 "tg.y"
  1398. {
  1399.                                           yyval.p.line = yyvsp[-2].p.line;
  1400.                                           yyval.p.start = yyvsp[-2].p.start;
  1401.                                           yyval.p.end = yyvsp[0].p.end;
  1402.                                           yyval.p.val = new_exp(yyvsp[-2].p.val, yyvsp[-1].i.val, yyvsp[0].p.val);
  1403.                                        ;
  1404.     break;}
  1405. case 68:
  1406. #line 297 "tg.y"
  1407. {
  1408.                                           yyval.p.line = yyvsp[-2].p.line; 
  1409.                                           yyval.p.start = yyvsp[-2].p.start;
  1410.                                           yyval.p.end = yyvsp[0].p.end; 
  1411.                                           yyval.p.val = new_exp(yyvsp[-2].p.val, '+', yyvsp[0].p.val);
  1412.                                        ;
  1413.     break;}
  1414. case 69:
  1415. #line 303 "tg.y"
  1416. {
  1417.                                           yyval.p.line = yyvsp[-2].p.line; 
  1418.                                           yyval.p.start = yyvsp[-2].p.start;
  1419.                                           yyval.p.end = yyvsp[0].p.end; 
  1420.                                           yyval.p.val = new_exp(yyvsp[-2].p.val, '-', yyvsp[0].p.val);
  1421.                                        ;
  1422.     break;}
  1423. case 70:
  1424. #line 309 "tg.y"
  1425. {  
  1426.                                           ERR("expression expected after '+'"); 
  1427.                                           yyval.p.val = 0;
  1428.                                        ;
  1429.     break;}
  1430. case 71:
  1431. #line 313 "tg.y"
  1432. {  
  1433.                                           ERR("expression expected after '-'"); 
  1434.                                           yyval.p.val = 0;
  1435.                                        ;
  1436.     break;}
  1437. case 73:
  1438. #line 320 "tg.y"
  1439. {
  1440.                                           yyval.p.line = yyvsp[-2].p.line; 
  1441.                                           yyval.p.start = yyvsp[-2].p.start;
  1442.                                           yyval.p.end = yyvsp[0].p.end; 
  1443.                                           yyval.p.val = new_exp(yyvsp[-2].p.val, '*', yyvsp[0].p.val);
  1444.                                        ;
  1445.     break;}
  1446. case 74:
  1447. #line 326 "tg.y"
  1448. {
  1449.                                           yyval.p.line = yyvsp[-2].p.line; 
  1450.                                           yyval.p.start = yyvsp[-2].p.start;
  1451.                                           yyval.p.end = yyvsp[0].p.end; 
  1452.                                           yyval.p.val = new_exp(yyvsp[-2].p.val, '/', yyvsp[0].p.val);
  1453.                                        ;
  1454.     break;}
  1455. case 75:
  1456. #line 332 "tg.y"
  1457. {  ERR("expression expected after '*'");
  1458.                                           yyval.p.val = 0;
  1459.                                        ;
  1460.     break;}
  1461. case 76:
  1462. #line 335 "tg.y"
  1463. {  ERR("expression expected after '/'");
  1464.                                           yyval.p.val = 0;
  1465.                                        ;
  1466.     break;}
  1467. case 77:
  1468. #line 340 "tg.y"
  1469. {  yyval.p.line = yyvsp[0].p.line;
  1470.                                           yyval.p.start = yyvsp[0].p.start;
  1471.                                           yyval.p.end = yyvsp[0].p.end;
  1472.                                           yyval.p.val = new_explist( 0, yyvsp[0].p.val );
  1473.                                        ;
  1474.     break;}
  1475. case 78:
  1476. #line 345 "tg.y"
  1477. {  yyval.p.line = yyvsp[-2].p.line;
  1478.                                           yyval.p.start = yyvsp[-2].p.start;
  1479.                                           yyval.p.end = yyvsp[-2].p.end;
  1480.                                           yyval.p.val = new_explist(yyvsp[-2].p.val, yyvsp[0].p.val);
  1481.                                        ;
  1482.     break;}
  1483. case 79:
  1484. #line 352 "tg.y"
  1485. {  yyval.p.line = yyvsp[-2].s.line;
  1486.                                           yyval.p.start = yyvsp[-2].s.start;
  1487.                                           yyval.p.end = yyvsp[0].p.end;
  1488.                                           yyval.p.val = new_fldlist( 0, yyvsp[-2].s.val,
  1489.                                                   yyvsp[0].p.val );
  1490.                                        ;
  1491.     break;}
  1492. case 80:
  1493. #line 358 "tg.y"
  1494. {
  1495.                                           yyval.p.line = yyvsp[-4].p.line; 
  1496.                                           yyval.p.start = yyvsp[-4].p.start;
  1497.                                           yyval.p.end = yyvsp[0].p.end;
  1498.                                           yyval.p.val = new_fldlist( yyvsp[-4].p.val, yyvsp[-2].s.val,
  1499.                                                       yyvsp[0].p.val );
  1500.                                        ;
  1501.     break;}
  1502. case 81:
  1503. #line 367 "tg.y"
  1504. {
  1505.                                           yyval.p.line = yyvsp[-2].s.line;
  1506.                                           yyval.p.start = yyvsp[-2].s.start;
  1507.                                           yyval.p.end = yyvsp[0].s.end;
  1508.                                           yyval.p.val = new_array( yyvsp[-1].p.val );
  1509.                                        ;
  1510.     break;}
  1511. case 82:
  1512. #line 373 "tg.y"
  1513. {
  1514.                                           yyval.p.line = yyvsp[-2].s.line;
  1515.                                           yyval.p.start = yyvsp[-2].s.start;
  1516.                                           yyval.p.end = yyvsp[0].s.end;
  1517.                                           yyval.p.val = new_record( yyvsp[-1].p.val );
  1518.                                        ;
  1519.     break;}
  1520. case 83:
  1521. #line 379 "tg.y"
  1522. {  ERR("error in array definition");
  1523.                                           yyval.p.val = 0;
  1524.                                           yyval.p.line = yyvsp[-1].s.line;
  1525.                                        ;
  1526.     break;}
  1527. case 86:
  1528. #line 387 "tg.y"
  1529.                                           yyval.p.line = yyvsp[-1].p.line;
  1530.                                           yyval.p.start = yyvsp[-1].p.start;
  1531.                                           yyval.p.end = yyvsp[0].i.end;
  1532.                                           yyval.p.val = new_inc( yyvsp[-1].p.val, +1, 1 );
  1533.                                        ;
  1534.     break;}
  1535. case 87:
  1536. #line 393 "tg.y"
  1537. {
  1538.                                           yyval.p.line = yyvsp[-1].i.line;
  1539.                                           yyval.p.start = yyvsp[-1].i.start;
  1540.                                           yyval.p.end = yyvsp[0].p.end;
  1541.                                           yyval.p.val = new_inc( yyvsp[0].p.val, +1, 0 );
  1542.                                        ;
  1543.     break;}
  1544. case 88:
  1545. #line 399 "tg.y"
  1546. {
  1547.                                           yyval.p.line = yyvsp[-1].i.line;
  1548.                                           yyval.p.start = yyvsp[-1].i.start;
  1549.                                           yyval.p.end = yyvsp[0].p.end;
  1550.                                           yyval.p.val = new_exp( 0, 'n', yyvsp[0].p.val);
  1551.                                        ;
  1552.     break;}
  1553. case 89:
  1554. #line 405 "tg.y"
  1555. {
  1556.                                           yyval.p.line = yyvsp[-1].s.line;
  1557.                                           yyval.p.start = yyvsp[-1].s.start;
  1558.                                           yyval.p.end = yyvsp[0].p.end;
  1559.                                           yyval.p.val = new_exp( 0, '-', yyvsp[0].p.val);
  1560.                                        ;
  1561.     break;}
  1562. case 90:
  1563. #line 411 "tg.y"
  1564.                                           yyval.p.line = yyvsp[-1].p.line;
  1565.                                           yyval.p.start = yyvsp[-1].p.start;
  1566.                                           yyval.p.end = yyvsp[0].i.end;
  1567.                                           yyval.p.val = new_inc( yyvsp[-1].p.val, -1, 1 );
  1568.                                        ;
  1569.     break;}
  1570. case 91:
  1571. #line 417 "tg.y"
  1572. {
  1573.                                           yyval.p.line = yyvsp[-1].i.line;
  1574.                                           yyval.p.start = yyvsp[-1].i.start;
  1575.                                           yyval.p.end = yyvsp[0].p.end;
  1576.                                           yyval.p.val = new_inc( yyvsp[0].p.val, -1, 0 );
  1577.                                        ;
  1578.     break;}
  1579. case 92:
  1580. #line 423 "tg.y"
  1581. {   
  1582.                                           yyval.p.line = yyvsp[0].i.line; 
  1583.                                           yyval.p.start = yyvsp[0].i.start;
  1584.                                           yyval.p.end = yyvsp[0].i.end; 
  1585.                                           yyval.p.val = new_num(yyvsp[0].i.val);
  1586.                                        ;
  1587.     break;}
  1588. case 93:
  1589. #line 429 "tg.y"
  1590. {
  1591.                                           yyval.p.line = yyvsp[0].f.line; 
  1592.                                           yyval.p.start = yyvsp[0].f.start;
  1593.                                           yyval.p.end = yyvsp[0].f.end; 
  1594.                                           yyval.p.val = new_float(yyvsp[0].f.val);
  1595.                                        ;
  1596.     break;}
  1597. case 94:
  1598. #line 435 "tg.y"
  1599. {
  1600.                                           yyval.p.line = yyvsp[0].s.line; 
  1601.                                           yyval.p.start = yyvsp[0].s.start;
  1602.                                           yyval.p.end = yyvsp[0].s.end; 
  1603.                                           yyval.p.val = new_string(yyvsp[0].s.val);
  1604.                                           if ( yyvsp[0].s.val ) {
  1605.                                               FREE( yyvsp[0].s.val );
  1606.                                               yyvsp[0].s.val = 0;
  1607.                                           }
  1608.                                        ;
  1609.     break;}
  1610. case 95:
  1611. #line 445 "tg.y"
  1612. {
  1613.                                           yyval.p.line = yyvsp[-2].s.line; 
  1614.                                           yyval.p.start = yyvsp[-2].s.start;
  1615.                                           yyval.p.end = yyvsp[0].s.end; 
  1616.                                           yyval.p.val = yyvsp[-1].p.val;
  1617.                                        ;
  1618.     break;}
  1619. case 96:
  1620. #line 451 "tg.y"
  1621. {  ERR("expression expected after '('");
  1622.                                           yyval.p.val = 0;
  1623.                                        ;
  1624.     break;}
  1625. case 97:
  1626. #line 456 "tg.y"
  1627. {
  1628.                                           yyval.p.line = yyvsp[0].s.line; 
  1629.                                           yyval.p.start = yyvsp[0].s.start;
  1630.                                           yyval.p.end = yyvsp[0].s.end; 
  1631.                                           yyval.p.val = new_part(yyvsp[0].s.val);
  1632.                                           if ( yyvsp[0].s.val ) {
  1633.                                               FREE( yyvsp[0].s.val );
  1634.                                               yyvsp[0].s.val = 0;
  1635.                                           }
  1636.                                        ;
  1637.     break;}
  1638. case 98:
  1639. #line 466 "tg.y"
  1640. {  yyval.p.line = yyvsp[0].p.line;
  1641.                                           yyval.p.start = yyvsp[0].p.start;
  1642.                                           yyval.p.end = yyvsp[0].p.end; 
  1643.                                           yyval.p.val = new_exppart( yyvsp[0].p.val );
  1644.                                        ;
  1645.     break;}
  1646. case 99:
  1647. #line 471 "tg.y"
  1648. {
  1649.                                           yyval.p.line = yyvsp[-3].p.line; 
  1650.                                           yyval.p.start = yyvsp[-3].p.start;
  1651.                                           yyval.p.end = yyvsp[0].s.end; 
  1652.                                           yyval.p.val = new_fun( yyvsp[-3].p.val, yyvsp[-1].p.val );
  1653.                                        ;
  1654.     break;}
  1655. case 100:
  1656. #line 477 "tg.y"
  1657. {
  1658.                                           yyval.p.line = yyvsp[-3].p.line; 
  1659.                                           yyval.p.start = yyvsp[-3].p.start;
  1660.                                           yyval.p.end = yyvsp[0].s.end; 
  1661.                                           yyval.p.val = new_tab( yyvsp[-3].p.val, yyvsp[-1].p.val );
  1662.                                        ;
  1663.     break;}
  1664. case 101:
  1665. #line 483 "tg.y"
  1666. {  ERR("bad function call argument");
  1667.                                           yyval.p.val = 0;
  1668.                                        ;
  1669.     break;}
  1670. case 102:
  1671. #line 486 "tg.y"
  1672. { ERR("expression expected after '['");
  1673.                                           yyval.p.val = 0;
  1674.                                        ;
  1675.     break;}
  1676. case 103:
  1677. #line 492 "tg.y"
  1678. {  yyval.p.val = 0; ;
  1679.     break;}
  1680. case 105:
  1681. #line 496 "tg.y"
  1682. {
  1683.                                           yyval.p.line = yyvsp[0].p.line; 
  1684.                                           yyval.p.start = yyvsp[0].p.start;
  1685.                                           yyval.p.end = yyvsp[0].p.end; 
  1686.                                           yyval.p.val = new_explist( 0, yyvsp[0].p.val );
  1687.                                        ;
  1688.     break;}
  1689. case 106:
  1690. #line 502 "tg.y"
  1691. {
  1692.                                           yyval.p.line = yyvsp[-2].p.line; 
  1693.                                           yyval.p.start = yyvsp[-2].p.start;
  1694.                                           yyval.p.end = yyvsp[0].p.end; 
  1695.                                           yyval.p.val = new_explist(yyvsp[-2].p.val, yyvsp[0].p.val);
  1696.                                        ;
  1697.     break;}
  1698. case 122:
  1699. #line 525 "tg.y"
  1700. {  yyval.l.line = yyvsp[0].i.line;
  1701.                                           yyval.l.cmd = 0; ;
  1702.     break;}
  1703. case 123:
  1704. #line 527 "tg.y"
  1705. {  yyval.l.line = yyvsp[-1].i.line;
  1706.                                           ERR( "bad '@' command" );
  1707.                                           yyval.l.cmd = 0;
  1708.                                        ;
  1709.     break;}
  1710. case 124:
  1711. #line 533 "tg.y"
  1712. {
  1713.                                          yyval.l.line = yyvsp[-4].i.line;
  1714.                                          yyval.l.cmd=new_if(yyvsp[-3].p.val,yyvsp[0].i.line,yyvsp[0].i.line); 
  1715.                                        ;
  1716.     break;}
  1717. case 125:
  1718. #line 537 "tg.y"
  1719. {
  1720.                                          yyval.l.line = yyvsp[-7].i.line;
  1721.                                          yyval.l.cmd=new_if(yyvsp[-6].p.val,yyvsp[-3].i.line,yyvsp[0].i.line); 
  1722.                                        ;
  1723.     break;}
  1724. case 126:
  1725. #line 541 "tg.y"
  1726. { ERR( "@if command malformed" );
  1727.                                          yyval.l.cmd = 0;
  1728.                                        ;
  1729.     break;}
  1730. case 127:
  1731. #line 546 "tg.y"
  1732. { yyval.p.end = yyvsp[0].i.line; ;
  1733.     break;}
  1734. case 128:
  1735. #line 547 "tg.y"
  1736. { ERR("@function not closed");
  1737.                                          yyval.p.val = 0; ;
  1738.     break;}
  1739. case 129:
  1740. #line 552 "tg.y"
  1741. {
  1742.                                       int _regres;
  1743.                                       yyval.l.line = yyvsp[-6].i.line;
  1744.                                       yyval.l.cmd = new_function( yyvsp[-5].s.val, yyvsp[-3].p.val,
  1745.                                               yyvsp[0].p.end ); 
  1746.                                       if ( regfun( yyvsp[-5].s.val, curfilen, 
  1747.                                                   yyvsp[-6].i.line ) == 2 ) 
  1748.                                           warning( "warning: function duplicated" );
  1749.                                       if ( yyvsp[-5].s.val ) FREE( yyvsp[-5].s.val );
  1750.                                     ;
  1751.     break;}
  1752. case 130:
  1753. #line 562 "tg.y"
  1754. {
  1755.                                       ERR("bad @function header");
  1756.                                       yyval.l.cmd = 0;
  1757.                                     ;
  1758.     break;}
  1759. case 131:
  1760. #line 568 "tg.y"
  1761. { yyval.p.val = 0; ;
  1762.     break;}
  1763. case 133:
  1764. #line 572 "tg.y"
  1765. { yyval.p.line = yyvsp[0].s.line;
  1766.                                       yyval.p.val = new_parlist( 0, yyvsp[0].s.val ); 
  1767.                                       if ( yyvsp[0].s.val ) FREE( yyvsp[0].s.val );
  1768.                                     ;
  1769.     break;}
  1770. case 134:
  1771. #line 576 "tg.y"
  1772. {
  1773.                                       yyval.p.line = yyvsp[-2].p.line;
  1774.                                       yyval.p.val = new_parlist( yyvsp[-2].p.val, yyvsp[0].s.val ); 
  1775.                                       if ( yyvsp[0].s.val ) FREE( yyvsp[0].s.val );
  1776.                                     ;
  1777.     break;}
  1778. case 135:
  1779. #line 583 "tg.y"
  1780. {
  1781.                                       yyval.l.line = yyvsp[-4].i.line;
  1782.                                       yyval.l.cmd = new_switch(yyvsp[-3].p.val,yyvsp[-1].p.val,
  1783.                                               yyvsp[-4].i.line,yyvsp[0].i.line);
  1784.                                     ;
  1785.     break;}
  1786. case 136:
  1787. #line 588 "tg.y"
  1788. { ERR( "@case expected" );
  1789.                                       yyval.l.cmd = 0;
  1790.                                     ;
  1791.     break;}
  1792. case 137:
  1793. #line 593 "tg.y"
  1794. {  yyval.p.line = yyvsp[0].p.line;
  1795.                                       yyval.p.val = new_caselist(0,yyvsp[0].p.val,yyvsp[0].p.line);
  1796.                                    ;
  1797.     break;}
  1798. case 138:
  1799. #line 596 "tg.y"
  1800. { yyval.p.line = yyvsp[-1].p.line;
  1801.                                       yyval.p.val = new_caselist(yyvsp[-1].p.val, 
  1802.                                               yyvsp[0].p.val, yyvsp[0].p.line );
  1803.                                    ;
  1804.     break;}
  1805. case 139:
  1806. #line 602 "tg.y"
  1807. {
  1808.                                       yyval.p.line = yyvsp[-3].p.line;
  1809.                                       yyval.p.val = yyvsp[-3].p.val;
  1810.                                    ;
  1811.     break;}
  1812. case 140:
  1813. #line 606 "tg.y"
  1814. {  ERR("after @case expected expression and ':'");
  1815.                                       yyval.p.val = 0;
  1816.                                    ;
  1817.     break;}
  1818. case 141:
  1819. #line 611 "tg.y"
  1820. {
  1821.                                       yyval.l.line = yyvsp[-4].i.line;
  1822.                                       yyval.l.cmd = new_for(yyvsp[-3].p.val, yyvsp[-4].i.line, yyvsp[0].i.line);
  1823.                                    ;
  1824.     break;}
  1825. case 142:
  1826. #line 615 "tg.y"
  1827. {  ERR( "bad @for command syntax" );
  1828.                                       yyval.l.cmd = 0; yyval.l.line = yyvsp[-1].i.line;
  1829.                                    ;
  1830.     break;}
  1831. case 143:
  1832. #line 620 "tg.y"
  1833. {
  1834.                                       yyval.p.line = yyvsp[-6].s.line;
  1835.                                       yyval.p.val = new_forctl(yyvsp[-5].p.val,yyvsp[-3].p.val,yyvsp[-1].p.val);
  1836.                                    ;
  1837.     break;}
  1838. case 144:
  1839. #line 624 "tg.y"
  1840. {
  1841.                                       yyval.p.line = yyvsp[-4].s.line;
  1842.                                       yyval.p.start = yyvsp[-4].s.start;
  1843.                                       yyval.p.end = yyvsp[0].s.end;
  1844.                                       yyval.p.val = new_lforctl(yyvsp[-3].p.val,yyvsp[-1].p.val);  
  1845.                                    ;
  1846.     break;}
  1847. case 145:
  1848. #line 630 "tg.y"
  1849. {  ERR( "bad @for command syntax" );
  1850.                                       yyval.p.val = 0;
  1851.                                    ;
  1852.     break;}
  1853. case 146:
  1854. #line 635 "tg.y"
  1855. {  yyval.l.line = yyvsp[-1].i.line;
  1856.                                       yyval.l.cmd = new_return( yyvsp[0].p.val );
  1857.                                    ;
  1858.     break;}
  1859. case 147:
  1860. #line 638 "tg.y"
  1861. {  ERR( "@return without argument" );
  1862.                                       yyval.l.cmd = 0;
  1863.                                    ;
  1864.     break;}
  1865. case 148:
  1866. #line 643 "tg.y"
  1867. {  yyval.l.line = yyvsp[0].i.line;
  1868.                                       yyval.l.cmd = new_break( yyvsp[0].i.line );
  1869.                                    ;
  1870.     break;}
  1871. case 149:
  1872. #line 648 "tg.y"
  1873. {  yyval.l.line = yyvsp[0].i.line;
  1874.                                       yyval.l.cmd = new_push();
  1875.                                    ;
  1876.     break;}
  1877. case 150:
  1878. #line 653 "tg.y"
  1879. {  yyval.l.line = yyvsp[0].i.line;
  1880.                                       yyval.l.cmd = new_pop();
  1881.                                    ;
  1882.     break;}
  1883. case 151:
  1884. #line 658 "tg.y"
  1885. {  yyval.p.val = 0;  ;
  1886.     break;}
  1887. case 153:
  1888. #line 660 "tg.y"
  1889. {  ERR( "expression expected" );
  1890.                                       yyval.p.val = 0; 
  1891.                                    ;
  1892.     break;}
  1893. case 154:
  1894. #line 665 "tg.y"
  1895. {  yyval.l.line = yyvsp[-1].i.line;
  1896.                                       yyval.l.cmd = new_cmdexp( yyvsp[0].p.val ); ;
  1897.     break;}
  1898. case 155:
  1899. #line 669 "tg.y"
  1900. {  yyval.l.line = yyvsp[-1].i.line;
  1901.                                       yyval.l.cmd = new_embed( yyvsp[0].p.val ); ;
  1902.     break;}
  1903. case 156:
  1904. #line 673 "tg.y"
  1905. {  yyval.l.line = yyvsp[-1].i.line;
  1906.                                       yyval.l.cmd = new_emit( yyvsp[0].p.val ); ;
  1907.     break;}
  1908. case 157:
  1909. #line 677 "tg.y"
  1910. {  yyval.l.line = yyvsp[-1].i.line;
  1911.                                       yyval.l.cmd = new_output( yyvsp[0].p.val ); ;
  1912.     break;}
  1913. case 158:
  1914. #line 681 "tg.y"
  1915. {  yyval.l.line = yyvsp[-1].i.line;
  1916.                                       yyval.l.cmd = new_local( yyvsp[0].s.val ); ;
  1917.     break;}
  1918. case 159:
  1919. #line 685 "tg.y"
  1920. {  yyval.l.line = yyvsp[-1].i.line;
  1921.                                       yyval.l.cmd = new_use( yyvsp[0].s.val ); ;
  1922.     break;}
  1923. case 160:
  1924. #line 687 "tg.y"
  1925. {  yyval.l.line = yyvsp[-1].i.line;
  1926.                                       yyval.l.cmd = new_use( unquote(yyvsp[0].s.val) );
  1927.                                       if (yyvsp[0].s.val) FREE(yyvsp[0].s.val);
  1928.                                    ;
  1929.     break;}
  1930. case 161:
  1931. #line 693 "tg.y"
  1932. {  yyval.l.line = yyvsp[0].i.line;
  1933.                                       yyval.l.cmd = new_exit( 0 );
  1934.                                    ;
  1935.     break;}
  1936. case 162:
  1937. #line 696 "tg.y"
  1938. {  yyval.l.line = yyvsp[-1].i.line;
  1939.                                       yyval.l.cmd = new_exit( yyvsp[0].p.val );
  1940.                                    ;
  1941.     break;}
  1942. }
  1943.    /* the action file gets copied in in place of this dollarsign */
  1944. #line 542 "/gg/share/bison.simple"
  1945.  
  1946.   yyvsp -= yylen;
  1947.   yyssp -= yylen;
  1948. #ifdef YYLSP_NEEDED
  1949.   yylsp -= yylen;
  1950. #endif
  1951.  
  1952. #if YYDEBUG != 0
  1953.   if (yydebug)
  1954.     {
  1955.       short *ssp1 = yyss - 1;
  1956.       fprintf (stderr, "state stack now");
  1957.       while (ssp1 != yyssp)
  1958.     fprintf (stderr, " %d", *++ssp1);
  1959.       fprintf (stderr, "\n");
  1960.     }
  1961. #endif
  1962.  
  1963.   *++yyvsp = yyval;
  1964.  
  1965. #ifdef YYLSP_NEEDED
  1966.   yylsp++;
  1967.   if (yylen == 0)
  1968.     {
  1969.       yylsp->first_line = yylloc.first_line;
  1970.       yylsp->first_column = yylloc.first_column;
  1971.       yylsp->last_line = (yylsp-1)->last_line;
  1972.       yylsp->last_column = (yylsp-1)->last_column;
  1973.       yylsp->text = 0;
  1974.     }
  1975.   else
  1976.     {
  1977.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1978.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1979.     }
  1980. #endif
  1981.  
  1982.   /* Now "shift" the result of the reduction.
  1983.      Determine what state that goes to,
  1984.      based on the state we popped back to
  1985.      and the rule number reduced by.  */
  1986.  
  1987.   yyn = yyr1[yyn];
  1988.  
  1989.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1990.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1991.     yystate = yytable[yystate];
  1992.   else
  1993.     yystate = yydefgoto[yyn - YYNTBASE];
  1994.  
  1995.   goto yynewstate;
  1996.  
  1997. yyerrlab:   /* here on detecting error */
  1998.  
  1999.   if (! yyerrstatus)
  2000.     /* If not already recovering from an error, report this error.  */
  2001.     {
  2002.       ++yynerrs;
  2003.  
  2004. #ifdef YYERROR_VERBOSE
  2005.       yyn = yypact[yystate];
  2006.  
  2007.       if (yyn > YYFLAG && yyn < YYLAST)
  2008.     {
  2009.       int size = 0;
  2010.       char *msg;
  2011.       int x, count;
  2012.  
  2013.       count = 0;
  2014.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  2015.       for (x = (yyn < 0 ? -yyn : 0);
  2016.            x < (sizeof(yytname) / sizeof(char *)); x++)
  2017.         if (yycheck[x + yyn] == x)
  2018.           size += strlen(yytname[x]) + 15, count++;
  2019.       msg = (char *) malloc(size + 15);
  2020.       if (msg != 0)
  2021.         {
  2022.           strcpy(msg, "parse error");
  2023.  
  2024.           if (count < 5)
  2025.         {
  2026.           count = 0;
  2027.           for (x = (yyn < 0 ? -yyn : 0);
  2028.                x < (sizeof(yytname) / sizeof(char *)); x++)
  2029.             if (yycheck[x + yyn] == x)
  2030.               {
  2031.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  2032.             strcat(msg, yytname[x]);
  2033.             strcat(msg, "'");
  2034.             count++;
  2035.               }
  2036.         }
  2037.           yyerror(msg);
  2038.           free(msg);
  2039.         }
  2040.       else
  2041.         yyerror ("parse error; also virtual memory exceeded");
  2042.     }
  2043.       else
  2044. #endif /* YYERROR_VERBOSE */
  2045.     yyerror("parse error");
  2046.     }
  2047.  
  2048.   goto yyerrlab1;
  2049. yyerrlab1:   /* here on error raised explicitly by an action */
  2050.  
  2051.   if (yyerrstatus == 3)
  2052.     {
  2053.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2054.  
  2055.       /* return failure if at end of input */
  2056.       if (yychar == YYEOF)
  2057.     YYABORT;
  2058.  
  2059. #if YYDEBUG != 0
  2060.       if (yydebug)
  2061.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2062. #endif
  2063.  
  2064.       yychar = YYEMPTY;
  2065.     }
  2066.  
  2067.   /* Else will try to reuse lookahead token
  2068.      after shifting the error token.  */
  2069.  
  2070.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2071.  
  2072.   goto yyerrhandle;
  2073.  
  2074. yyerrdefault:  /* current state does not do anything special for the error token. */
  2075.  
  2076. #if 0
  2077.   /* This is wrong; only states that explicitly want error tokens
  2078.      should shift them.  */
  2079.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2080.   if (yyn) goto yydefault;
  2081. #endif
  2082.  
  2083. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2084.  
  2085.   if (yyssp == yyss) YYABORT;
  2086.   yyvsp--;
  2087.   yystate = *--yyssp;
  2088. #ifdef YYLSP_NEEDED
  2089.   yylsp--;
  2090. #endif
  2091.  
  2092. #if YYDEBUG != 0
  2093.   if (yydebug)
  2094.     {
  2095.       short *ssp1 = yyss - 1;
  2096.       fprintf (stderr, "Error: state stack now");
  2097.       while (ssp1 != yyssp)
  2098.     fprintf (stderr, " %d", *++ssp1);
  2099.       fprintf (stderr, "\n");
  2100.     }
  2101. #endif
  2102.  
  2103. yyerrhandle:
  2104.  
  2105.   yyn = yypact[yystate];
  2106.   if (yyn == YYFLAG)
  2107.     goto yyerrdefault;
  2108.  
  2109.   yyn += YYTERROR;
  2110.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2111.     goto yyerrdefault;
  2112.  
  2113.   yyn = yytable[yyn];
  2114.   if (yyn < 0)
  2115.     {
  2116.       if (yyn == YYFLAG)
  2117.     goto yyerrpop;
  2118.       yyn = -yyn;
  2119.       goto yyreduce;
  2120.     }
  2121.   else if (yyn == 0)
  2122.     goto yyerrpop;
  2123.  
  2124.   if (yyn == YYFINAL)
  2125.     YYACCEPT;
  2126.  
  2127. #if YYDEBUG != 0
  2128.   if (yydebug)
  2129.     fprintf(stderr, "Shifting error token, ");
  2130. #endif
  2131.  
  2132.   *++yyvsp = yylval;
  2133. #ifdef YYLSP_NEEDED
  2134.   *++yylsp = yylloc;
  2135. #endif
  2136.  
  2137.   yystate = yyn;
  2138.   goto yynewstate;
  2139.  
  2140.  yyacceptlab:
  2141.   /* YYACCEPT comes here.  */
  2142.   if (yyfree_stacks)
  2143.     {
  2144.       free (yyss);
  2145.       free (yyvs);
  2146. #ifdef YYLSP_NEEDED
  2147.       free (yyls);
  2148. #endif
  2149.     }
  2150.   return 0;
  2151.  
  2152.  yyabortlab:
  2153.   /* YYABORT comes here.  */
  2154.   if (yyfree_stacks)
  2155.     {
  2156.       free (yyss);
  2157.       free (yyvs);
  2158. #ifdef YYLSP_NEEDED
  2159.       free (yyls);
  2160. #endif
  2161.     }
  2162.   return 1;
  2163. }
  2164. #line 701 "tg.y"
  2165.